package com.cloudwise.service.impl;

import com.cloudwise.dao.StudentDao;
import com.cloudwise.entity.Student;
import com.cloudwise.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 张燕豪
 * @description
 * @date 2022/1/22
 */
@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentDao studentDao;
    @Override
    public boolean insert(Student student) {
        return studentDao.insert(student);
    }

    @Override
    public Student selectOne(String idCard) {
        return studentDao.selectOne(idCard);
    }
}
